package com.chinairi.mall.service;

import com.chinairi.mall.controller.viewobject.ProjectPlanReturnVO;
import com.chinairi.mall.model.ProjectPlanReqDetail;
import com.chinairi.mall.model.ProjectPlanReturn;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chinairi.mall.model.ProjectPlanReturnDetail;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author gsl
 * @since 2020-10-24
 */
public interface IProjectPlanReturnService extends IService<ProjectPlanReturn> {

    /**
     * 新增退料
     *
     * @param projectPlanReturnVO
     */
    void addReturn(ProjectPlanReturnVO projectPlanReturnVO);

    /**
     * 获取退料列表
     *
     * @return
     */
    List<ProjectPlanReturn> getList(String flag);

    /**
     * 获取退料单详情
     *
     * @param pprId
     * @return
     */
    ProjectPlanReturnVO getReturnDetail(String pprId);

    /**
     * 更新退料单状态
     *
     * @param pprId
     * @param state
     */
    void updateState(String pprId, String state);

    /**
     * 过滤可退料的
     *
     * @param projectPlanReturnVO
     * @return
     */
    ProjectPlanReturnVO filterReturnMat(ProjectPlanReturnVO projectPlanReturnVO);
}
